// pages/HomePage/Index.js
import{ request }from"../../pages/request/index.js";
Page({

  /**
   * 页面的初始数据
   */
  data:{
    floorList: []
  },
  onLoad:function(options){
    this.getfloorList();
  },
  
  //获取 楼层数据
  getfloorList() {
    request({url: 'http://localhost:35043/api/Product/Index'})
      .then(result=>{
        this.setData({
          floorList:result.data.data
        })
      })
  }
})